<?php


namespace app\Enums;


class RoomStatus
{

    const WAIT = 1;
    const USING = 2;
    const FORBIDDEN = 3;

    const description = [
        self::WAIT=>"空闲",
        self::USING=>"游戏中",
        self::FORBIDDEN=>"禁止使用",
    ];

    public static function getDescription($value): string
    {
        return self::description[$value] ?? "";
    }
}